package polymorphism;

public class Test {
    public static void main(String[] args) {
        Animal c = new Cat();
        Animal d = new Dog();
        Animal duck = new Duck();

        c.bark();
        d.bark();
        duck.bark();
    }
}
